/*movietech.h*/
#ifndef MOVIETECH_H
#define MOVIETECH_H

struct MovieTech{
	int index;
	int replyTo;
	int msgLock;
	int myName;
	int sleepCon;
	
	int numTakersReplyNeeded;
	/*Possible status for MovieTech: Idle,WaitingForLobby,WaitingForTakers,StartingMovie,MovieOver,*/
	int runScheduler;
	int status;
	int numMsgs;
	struct Message tempMsg;
	struct Message msgList[3];
};

void MovieTech_Scheduler();
struct Message MovieTech_GetMessage(int name);

void MovieTech_CheckWithLobby();
void MovieTech_AskTakerAboutLine();
void MovieTech_TakerIsGood();
void MovieTech_PlayMovie();
void MovieTech_EndMovie();

#endif